package io;

import com.sun.org.apache.bcel.internal.generic.NEW;

import java.io.*;

public class BRDemo {
    public static void main(String[] args) throws IOException {
        //文件流
        FileInputStream fos = new FileInputStream("pw.txt");
        //转换流
        InputStreamReader isr = new InputStreamReader(fos, "UTF-8");
        //缓冲流字符流
        BufferedReader br = new BufferedReader(isr);
        String line;
        while ((line = br.readLine()) != null) {
            System.out.println(line);
        }
        br.close();
    }
}
